﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HAVNet.Intros.AST
{
    public class ASTEmbStmtLock : ASTEmbStmt
    {
        public ASTExpr    expression  { get; set; }
        public ASTStatement     statement   { get; set; }

        public override string ToString()
        {
            return
                "lock (" + expression.ToString() + ")" +
                Environment.NewLine +
                statement.ToString();
        }
    }
}
